package dongshi.daddy.springioc.three.three_three.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class BusinessPersonLazyInitFalse implements Person {
    private Animal animal;

    @Override
    public void service() {
    }

    @Override
    @Autowired @Qualifier("dog")
    public void setAnimal(Animal animal) {
        System.out.println("依赖注入了。。。");
        this.animal = animal;
    }
}
